<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@page import="com.tss.util.*"%>
<%@page import="com.jedi.*"%>
<%@include file="check_login.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

InputInfo inputBean = new InputInfo();
String cmd = ParamUtils.getParameter(request,"cmd","");
if (cmd.trim().equals("inputpowerinfo")) {
	String sql_pre = "insert into poweinfo (power_id,power_order,group_order,group_name,power_name,power_desc) values ";
	String [] powerList = {
		sql_pre + "('10001',1,1,'内部合同管理','添加','添加')",
		sql_pre + "('10002',2,2,'内部合同管理','浏览(本人)','浏览(本人)')",
		sql_pre + "('10003',3,3,'内部合同管理','修改(本人)','修改权限(本人)')",
		sql_pre + "('10004',4,4,'内部合同管理','合同查询','查询权限')",
		sql_pre + "('10005',5,5,'内部合同管理','合同统计','合同统计')",
		
		sql_pre + "('10006',6,6,'内部合同管理','损益分析','损益分析')",
		sql_pre + "('10007',7,7,'内部合同管理','修改(全部)','修改(全部)')",
		sql_pre + "('10008',8,8,'内部合同管理','浏览(全部)','浏览全部')",
		sql_pre + "('1210',10,20,'工单1','浏览','浏览')",
		sql_pre + "('1220',20,20,'工单1','添加','添加')",
		sql_pre + "('1230',30,20,'工单1','浏览工单统计','浏览工单统计')",
		sql_pre + "('1240',40,20,'工单2','修改','修改')",
		sql_pre + "('1250',50,20,'工单2','打分','打分')",
		sql_pre + "('1260',60,20,'工单2','删除','删除')",
		sql_pre + "('1310',10,30,'备件1','备件浏览','备件浏览')",
		sql_pre + "('1320',20,30,'备件1','添加','添加')",
		sql_pre + "('1330',30,30,'备件1','修改','修改')",
		sql_pre + "('1360',35,30,'备件2','报废','报废')",
		sql_pre + "('1340',40,30,'备件2','备件申请管理','备件申请管理')",
		sql_pre + "('1350',50,30,'备件2','备件维修管理','备件维修管理')",
		sql_pre + "('1370',60,30,'备件3','备件重新入库','备件重新入库')",
		sql_pre + "('1380',70,30,'备件3','浏览备件使用记录统计','浏览备件使用记录统计')",
		sql_pre + "('1410',10,40,'文章1','分类管理','分类管理')",
		sql_pre + "('1420',20,40,'文章1','文章浏览','文章浏览')",
		sql_pre + "('1450',25,40,'文章1','文章发布','文章发布')",
		sql_pre + "('1430',30,40,'文章2','文章管理(本人)','文章管理(本人)')",
		sql_pre + "('1440',40,40,'文章2','文章管理(全部)','文章管理(全部)')",
		sql_pre + "('1460',60,40,'文章2','文章统计','文章统计')",
		sql_pre + "('1510',10,50,'咨询','发表咨询','发表咨询')",
		sql_pre + "('1520',20,50,'咨询','删除','删除')",
		sql_pre + "('1530',30,50,'咨询','回复','回复')",
		sql_pre + "('1610',10,60,'软件下载','分类管理','分类管理')",
		sql_pre + "('1620',20,60,'软件下载','软件发布','软件发布')",
		sql_pre + "('1630',30,60,'软件下载','软件管理','软件管理')",
		sql_pre + "('1710',10,70,'专家','专家技能管理','专家技能管理')",
		sql_pre + "('1720',20,70,'专家','专家信息管理','专家信息管理')",
		sql_pre + "('1730',30,70,'专家','公告管理','公告管理')",
		sql_pre + "('1810',10,80,'技能1','分类管理','分类管理')",
		sql_pre + "('1820',20,80,'技能1','技能信息管理','技能信息管理')",
		sql_pre + "('1830',30,80,'技能1','工程师技能管理','工程师技能管理')",
		sql_pre + "('1840',40,80,'技能2','浏览统计信息','浏览统计信息')",
		sql_pre + "('1850',50,80,'技能2','浏览统计明细','浏览统计明细')",
		sql_pre + "('1860',60,80,'技能2','技能明细','技能明细')",
		sql_pre + "('1910',10,90,'满意度','浏览统计','浏览统计')",
		sql_pre + "('1920',20,90,'满意度','浏览明细','浏览明细')",
		sql_pre + "('1930',30,90,'满意度','添加','添加')"
	};
	inputBean.inputPower(powerList);
}
%>
<html>
<head>
    <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="style/main.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%if (cmd.trim().equals("inputpowerinfo")){%>
权限记录更新成功！
<%}%>
</body>
</html>
